package duotai;

public class Penguin extends Pet{
    @Override
    public  void  eat (Pet pet ) {
        //代表企鹅
        if(pet.getType()==2){
            pet.getHealth(5);
            if(pet.getType()>=100){
                System.out.println("健康值已达100，不需要继续投喂");

            }
        }
    }
}

